package org.broadway.jmx;

import org.apache.commons.logging.Log;
import org.broadway.exceptions.ABroadException;

/***
 * This is a general exception for all JMX activities.
 * @author vmatters
 *
 */
public class JmxException extends ABroadException {
	private static final long serialVersionUID = 59020011013463215L;

	/**
	 * Returns a standard runtime exception.
	 * @param msg
	 */
	public JmxException(String msg) {
		super(msg);
	}
	
	/**
	 * Returns a logged runtime exception
	 * @param msg
	 * @param log
	 */
	public JmxException(String msg, Log log) {
		super(msg, log);
	}
	
	/**
	 * Returns a standard runtime exception
	 * @param ex
	 */
	public JmxException(Throwable ex) {
		super(ex);
	}
	
	/**
	 * Returns a logged runtime exception
	 * @param ex
	 * @param log
	 */
	public JmxException(Throwable ex, Log log){
		super(ex, log);
	}
	
	/**
	 * Returns a stnadard runtime exception
	 * @param msg
	 * @param ex
	 */
	public JmxException(String msg, Throwable ex) {
		super(msg, ex);
	}
	
	/**
	 * Return a logged runtime exception.
	 * @param msg
	 * @param ex
	 * @param log
	 */
	public JmxException(String msg, Throwable ex, Log log) {
		super(msg,ex,log);
	}
}
